import 'package:json_annotation/json_annotation.dart';

part 'inventoryTask.g.dart';


@JsonSerializable()
class InventoryTask{
  int taskId;
  int assetId;
  int status; //1 未确认,2已确认
  int inventoryBy; // 盘点人
  String reason;

  InventoryTask(this.taskId, this.assetId, this.status, this.inventoryBy,
      this.reason);

  InventoryTask.empty();


  //不同的类使用不同的mixin即可
  factory InventoryTask.fromJson(Map<String, dynamic> json) => _$InventoryTaskFromJson(json);

  Map<String, dynamic> toJson() => _$InventoryTaskToJson(this);

}